# Copyright 2009 http://www.yuntien.com
# Licensed under the Apache License, Version 2.0

from ytblog.controller.common import *
    
class BlogCommentDeleteController(BlogController):
  @check_id(Comment)
  @authorize(Comment, authorization.OPERATION_DELETE)
  def post(self, id):
    comment = Comment.get_by_str_id(id)
    comment.delete()    
